<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>Ananas Library: Класс wDocument</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Создано системой Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Титульная&nbsp;страница</span></a></li>
      <li class="current"><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="files.html"><span>Файлы</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Классы</span></a></li>
      <li><a href="hierarchy.html"><span>Иерархия&nbsp;классов</span></a></li>
      <li><a href="functions.html"><span>Члены&nbsp;классов</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>Класс wDocument</h1><!-- doxytag: class="wDocument" --><!-- doxytag: inherits="aWidget" -->Визуальный объект - контейнер для работы с документами. Наследует <a class="el" href="classaWidget.html" title="Базовый класс для визуальных объектов. Наследует...">aWidget</a>.  
<a href="#_details">Подробнее...</a>
<p>
<code>#include &lt;<a class="el" href="wdocument_8h-source.html">wdocument.h</a>&gt;</code>
<p>
<div class="dynheader">
Граф наследования:wDocument:</div>
<div class="dynsection">

<p><center><img src="classwDocument.png" usemap="#wDocument_map" border="0" alt=""></center>
<map name="wDocument_map">
<area href="classaWidget.html" alt="aWidget" shape="rect" coords="0,0,77,24">
</map>
</div>

<p>
<a href="classwDocument-members.html">Полный список членов класса</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Открытые слоты</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#8b81d61b0b1bc873cd08a02170e45d21">select</a> (Q_ULLONG id)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">Q_ULLONG&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#10a185091e3dd0e05a3b3e5f3286685d">Insert</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#ab408b123189b42ca5b8a4775ad6f092">Update</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#29d8839054cf560503d2a9946b61bd34">TurnOn</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#f64b5f5137eeb328f074237c734f6bc2">TurnOff</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#15677946daec8aa87664628b29731a9c">MarkDelete</a> ()</td></tr>

<tr><td colspan="2"><br><h2>Открытые члены</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#cf3147d0d94e3e05eab46899a4d552c3">wDocument</a> (QWidget *parent=0, WFlags fl=0)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#6bc28ed117ddb5b2d541609ac2dc447c">~wDocument</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#25f13246274262cf38b629d877674ab5">checkStructure</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#f365b461b6147ac813cdec8a052780b3">initObject</a> (<a class="el" href="classaDatabase.html">aDatabase</a> *adb)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QDialog *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#a169280f554912c36d34fe09d920153f">createEditor</a> (QWidget *parent)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual QString&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#dbb80a4d8416f1e7ae62d52dad1423f1">displayString</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#37549d12ecf61d58c090c9488b2981c8">isContainer</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classaObject.html">aObject</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#d2147215cfdf6499a561e429d98bc26c">createDBObject</a> (aCfgItem obj, <a class="el" href="classaDatabase.html">aDatabase</a> *adb)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual ERR_Code&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#508b17626acba56b3ccbb3708d1c1b81">New</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual ERR_Code&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classwDocument.html#8a638cd4cbf1459f172ad4b688647f71">Select</a> (Q_ULLONG id)</td></tr>

</table>
<hr><a name="_details"></a><h2>Подробное описание</h2>
Визуальный объект - контейнер для работы с документами. Наследует <a class="el" href="classaWidget.html" title="Базовый класс для визуальных объектов. Наследует...">aWidget</a>. <hr><h2>Конструктор(ы)</h2>
<a class="anchor" name="cf3147d0d94e3e05eab46899a4d552c3"></a><!-- doxytag: member="wDocument::wDocument" ref="cf3147d0d94e3e05eab46899a4d552c3" args="(QWidget *parent=0, WFlags fl=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wDocument::wDocument           </td>
          <td>(</td>
          <td class="paramtype">QWidget *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">WFlags&nbsp;</td>
          <td class="paramname"> <em>fl</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Создает объект <a class="el" href="classwDocument.html" title="Визуальный объект - контейнер для работы с документами...">wDocument</a>.<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td></td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="6bc28ed117ddb5b2d541609ac2dc447c"></a><!-- doxytag: member="wDocument::~wDocument" ref="6bc28ed117ddb5b2d541609ac2dc447c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">wDocument::~wDocument           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Деструктор. 
</div>
</div><p>
<hr><h2>Методы</h2>
<a class="anchor" name="25f13246274262cf38b629d877674ab5"></a><!-- doxytag: member="wDocument::checkStructure" ref="25f13246274262cf38b629d877674ab5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool wDocument::checkStructure           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html#a4ca54b125188a3df962754489f32dce">aWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="f365b461b6147ac813cdec8a052780b3"></a><!-- doxytag: member="wDocument::initObject" ref="f365b461b6147ac813cdec8a052780b3" args="(aDatabase *adb)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void wDocument::initObject           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classaDatabase.html">aDatabase</a> *&nbsp;</td>
          <td class="paramname"> <em>adb</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td></td></tr>
  </table>
</dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html#f85b709f93fae93c762378522516d478">aWidget</a>.</p>

<p>Перекрестные ссылки <a class="el" href="awidget_8cpp-source.html#l00187">aWidget::initObject()</a>.</p>

</div>
</div><p>
<a class="anchor" name="a169280f554912c36d34fe09d920153f"></a><!-- doxytag: member="wDocument::createEditor" ref="a169280f554912c36d34fe09d920153f" args="(QWidget *parent)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QDialog * wDocument::createEditor           </td>
          <td>(</td>
          <td class="paramtype">QWidget *&nbsp;</td>
          <td class="paramname"> <em>parent</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html#3f0f8fe92e3dcf8cdb2a7ba381f85abc">aWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="dbb80a4d8416f1e7ae62d52dad1423f1"></a><!-- doxytag: member="wDocument::displayString" ref="dbb80a4d8416f1e7ae62d52dad1423f1" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString wDocument::displayString           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html">aWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="37549d12ecf61d58c090c9488b2981c8"></a><!-- doxytag: member="wDocument::isContainer" ref="37549d12ecf61d58c090c9488b2981c8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool wDocument::isContainer           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html">aWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="d2147215cfdf6499a561e429d98bc26c"></a><!-- doxytag: member="wDocument::createDBObject" ref="d2147215cfdf6499a561e429d98bc26c" args="(aCfgItem obj, aDatabase *adb)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classaObject.html">aObject</a> * wDocument::createDBObject           </td>
          <td>(</td>
          <td class="paramtype">aCfgItem&nbsp;</td>
          <td class="paramname"> <em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classaDatabase.html">aDatabase</a> *&nbsp;</td>
          <td class="paramname"> <em>adb</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Создает объект <a class="el" href="classaDocument.html" title="Определяет программный интерфейс для работы...">aDocument</a> для работы с базой.<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td></td></tr>
    <tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html#b7ceff3fcfd1bc8e0c26b0fb64e14178">aWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="508b17626acba56b3ccbb3708d1c1b81"></a><!-- doxytag: member="wDocument::New" ref="508b17626acba56b3ccbb3708d1c1b81" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int wDocument::New           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html#7b86f758499b99c2659010f332fe8a25">aWidget</a>.</p>

<p>Перекрестные ссылки <a class="el" href="awidget_8cpp-source.html#l00642">aWidget::New()</a>, <a class="el" href="alog_8cpp-source.html#l00058">aLog::print()</a> и <a class="el" href="awidget_8cpp-source.html#l00443">aWidget::uid()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8a638cd4cbf1459f172ad4b688647f71"></a><!-- doxytag: member="wDocument::Select" ref="8a638cd4cbf1459f172ad4b688647f71" args="(Q_ULLONG id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ERR_Code wDocument::Select           </td>
          <td>(</td>
          <td class="paramtype">Q_ULLONG&nbsp;</td>
          <td class="paramname"> <em>id</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Выбирает объект в базе данных.<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>id</em>&nbsp;</td><td>- id объекта в базе данных. </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>id - код ошибки. </dd></dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html#20352513d4e86e80d5a5b891395ad008">aWidget</a>.</p>

<p>Перекрестные ссылки <a class="el" href="awidget_8cpp-source.html#l00665">aWidget::Select()</a>.</p>

</div>
</div><p>
<a class="anchor" name="8b81d61b0b1bc873cd08a02170e45d21"></a><!-- doxytag: member="wDocument::select" ref="8b81d61b0b1bc873cd08a02170e45d21" args="(Q_ULLONG id)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int wDocument::select           </td>
          <td>(</td>
          <td class="paramtype">Q_ULLONG&nbsp;</td>
          <td class="paramname"> <em>id</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="10a185091e3dd0e05a3b3e5f3286685d"></a><!-- doxytag: member="wDocument::Insert" ref="10a185091e3dd0e05a3b3e5f3286685d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Q_ULLONG wDocument::Insert           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

</div>
</div><p>
<a class="anchor" name="ab408b123189b42ca5b8a4775ad6f092"></a><!-- doxytag: member="wDocument::Update" ref="ab408b123189b42ca5b8a4775ad6f092" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int wDocument::Update           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Обновляет значения в базе данных. Обновляет значения в текущей шапке документа.<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>код ошибки. </dd></dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html#ea7849464b90731afbb2c97880d2b9e0">aWidget</a>.</p>

<p>Перекрестные ссылки <a class="el" href="aobject_8cpp-source.html#l00584">aObject::Update()</a>.</p>

</div>
</div><p>
<a class="anchor" name="29d8839054cf560503d2a9946b61bd34"></a><!-- doxytag: member="wDocument::TurnOn" ref="29d8839054cf560503d2a9946b61bd34" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int wDocument::TurnOn           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Проводит текущий документ.<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>код ошибки. </dd></dl>

<p>Переопределяет метод предка <a class="el" href="classaWidget.html">aWidget</a>.</p>

<p>Перекрестные ссылки <a class="el" href="aobject_8cpp-source.html#l00638">aObject::Conduct()</a>.</p>

</div>
</div><p>
<a class="anchor" name="f64b5f5137eeb328f074237c734f6bc2"></a><!-- doxytag: member="wDocument::TurnOff" ref="f64b5f5137eeb328f074237c734f6bc2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int wDocument::TurnOff           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Распроводит текущий документ.<p>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd>код ошибки. </dd></dl>

<p>Перекрестные ссылки <a class="el" href="aobject_8cpp-source.html#l00654">aObject::UnConduct()</a>.</p>

</div>
</div><p>
<a class="anchor" name="15677946daec8aa87664628b29731a9c"></a><!-- doxytag: member="wDocument::MarkDelete" ref="15677946daec8aa87664628b29731a9c" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int wDocument::MarkDelete           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl compact><dt><b>Аргументы:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>-</em>&nbsp;</td><td></td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Возвращает:</b></dt><dd></dd></dl>

</div>
</div><p>
<hr>Объявления и описания членов классов находятся в файлах:<ul>
<li><a class="el" href="wdocument_8h-source.html">wdocument.h</a><li>wdocument.cpp</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Документация по Ananas Library. Последние изменения: Sun Feb 1 21:47:15 2009. Создано системой&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>
